﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkNode.Switching
{
    /// <summary>
    /// @Author Marcin Król 
    /// </summary>
    static class Utils
    {
        //test flag
        public static Boolean Test = true;

        //auxiliary vars n consts
        static readonly Random Random = new Random();
        const int Max = 1000000;

        //methods
        public static String GenerateMsoh(String nodeId)
        {
            return "MsohAt" + nodeId + "_" + Random.Next(Max);
        }

        public static String GenerateRsoh(String nodeId)
        {
            return "RsohAt" + nodeId + "_" + Random.Next(Max);
        }

        public static String GeneratePoh()
        {
            return "Poh" + Random.Next(Max);
        }
    }
}
